import unittest

import api.cart

import api.address


class Shopping(unittest.TestCase):

    def test_add_cart(self):
        response = api.cart.add()
        self.assertTrue(response.text.__contains__('success'))

    def test_default_address(self):
        response = api.address.default()
        self.assertTrue(response.text.__contains__('success'))
